package com.tarena.lbs.content.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@ApiModel("文章结果返回")
@Data
public class ArticleVO {

    @Schema(description ="文章id")
    private Integer id;

    @Schema(description ="文章标题")
    private String articleTitle;

    // 新增title字段，与前端要求匹配
    @Schema(description ="文章标题")
    private String title;

    @Schema(description ="文章分类id")
    private Integer articleCategoryId;

    // 新增categoryId字段，与前端要求匹配
    @Schema(description ="分类ID")
    private Integer categoryId;

    @Schema(description ="文章分类名称")
    private String articleCategory;

    // 新增categoryName字段，与前端要求匹配
    @Schema(description ="分类名称")
    private String categoryName;

    // 添加活动ID字段
    @Schema(description ="活动ID")
    private Integer activityId;

    // 添加活动标题字段
    @Schema(description ="活动标题")
    private String activityName;

    //

    @Schema(description ="文章状态")
    private Integer articleStatus;

    // 新增status字段，与前端要求匹配
    @Schema(description ="状态值")
    private Integer status;

    @Schema(description ="上下线状态")
    private Integer onlineStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(description ="文章标签")
    private String articleLabel; // 文章标签

    @Schema(description ="店铺ID")
    private Integer shopId;

    @Schema(description ="店铺名称")
    private String shopName;



}